<template>
    <el-main>
        <el-main class="ep-body">
            <epl-top-bar :datas="{formData:form}" showPerson psTagType="PERSON_PENSION_QUERY"
                         personType="PERSON_ALL_EXACT" :panel="panel">
            </epl-top-bar>
            <epl-userMessage dataType="person" idCount="8" :panel="panel">
                <template slot-scope="scope">
                    <epl-userMessageItem title="当前待遇" :sum="''" :panel="panel">
                        <epl-column label="扣发总月数"  :value="''"></epl-column>
                        <epl-column label="扣发总金额" :value="''" ></epl-column>
                        <epl-column label="当期实发金额" :value="'￥'"></epl-column>
                    </epl-userMessageItem>
                </template>
            </epl-userMessage>
            <el-card class="ep-card">
                <ep-title>请输入精减人员待遇暂停信息</ep-title>
                <el-form :model="form" ref="form" :rules="rules">
                    <el-row :gutter="10">
                        <ep-input colspan="8" label="当前待遇"  name="sum"  :property="form.sum" p="H"
                                  :datas="{formData:form}"></ep-input>
                    </el-row>
                    <el-row :gutter="10">
                        <ep-select colspan="8"  label="变更类型" name="bglx" placeholder="请选择变更类型" :property="form.bglx" codetype="BGLX"
                        p="R"  rules="this.$rules.test_noBlank" :datas="{formData:form}" ></ep-select>
                        <ep-select colspan="8"  label="变更原因" name="aae160" placeholder="请选择变更原因" :property="form.aae160" codetype="AAE160"
                                   p="R"  rules="this.$rules.test_noBlank" SelectFilterData="aaa102 in ('1201','1202','1203','1206','1207','1299')" :datas="{formData:form}" ></ep-select>
                        <ep-date colspan="8" label="停发日期" name="aae041" :property="form.aae041"  rules="this.$localRules.DateCheck"
                                 placeholder="请选择停发日期" p="R"
                                 :datas="{formData: form,panel:panel}"></ep-date>
                    </el-row>
                    <el-row :gutter="10">
                        <ep-input colspan="8" label="扣发开始年月"  name="bac061"  :property="form.bac061" p="D"
                                  :datas="{formData:form}" ></ep-input>
                        <ep-input colspan="8" label="扣发总月数"  name="bac062"  :property="form.bac062" p="D"
                                  :datas="{formData:form}"></ep-input>
                        <ep-input colspan="8" label="扣发总金额"  name="bac063"  :property="form.bac063" p="D"
                                  :datas="{formData:form}"></ep-input>
                    </el-row>
                    <el-row :gutter="10">
                        <ep-textarea :rows="3" colspan="24" label="备注" name="aae013" :property="form.aae013"
                                     placeholder="请输入备注" p="E" :datas="{formData:form}"></ep-textarea>
                    </el-row>
                    <el-row type="flex" justify="center">
                        <ep-button id="cal" api="doQuery" type="primary" top="20" bottom="20"
                                   :datas="{formData: form,tableData1:tableData1,panel:panel}"
                                   name="计算"></ep-button>
                        <ep-saveButton id="doSave" type="primary" top="20" bottom="20" ref="save" @formValidate="formValidate"
                                       :validate="['form']"
                                       :datas="{formData: form,panel:panel,tableData2:tableData2,tableData3:tableData3}"></ep-saveButton>
                    </el-row>
                </el-form>
                <el-tabs v-model="activeName2" type="card">
                    <el-tab-pane label="精减人员待遇扣发明细" name="1">
                        <ep-table :data="tableData1" :pager="20" :titleFilter="table1">
                            <ep-table-column editor="text" name="bklb" header="补扣类别"></ep-table-column>
                            <ep-table-column editor="text" name="eae003" header="待遇类别"></ep-table-column>
                            <ep-table-column editor="text" name="aae041" header="开始年月"></ep-table-column>
                            <ep-table-column editor="text" name="aae042" header="终止年月"></ep-table-column>
                            <ep-table-column editor="text" name="aae002" header="对应业务期"></ep-table-column>
                            <ep-table-column editor="text" name="aae019" header="扣发金额"></ep-table-column>
                        </ep-table>
                    </el-tab-pane>
                    <el-tab-pane label="历史发放情况" name="2">
                        <ep-table :data="tableData2" :pager="20" :titleFilter="table2">
                            <ep-table-column editor="text" header="业务期" name="aae002"></ep-table-column>
                            <ep-table-column editor="text" header="对应业务期" name="aae002s"></ep-table-column>
                            <ep-table-column editor="text" header="统筹内支付金额" name="tcnmoney"></ep-table-column>
                            <ep-table-column editor="text" header="统筹外支付金额" name="tcwmoney"></ep-table-column>
                            <ep-table-column editor="text" header="养老待遇支付合计" name="totalmoney"></ep-table-column>
                        </ep-table>
                    </el-tab-pane>
                </el-tabs>
            </el-card>
        </el-main>
    </el-main>
</template>

<script src="../js/ReduceStatusPauseJS.js"></script>
